<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="productList.title"/></title>
    <meta name="heading" content="<fmt:message key='productList.heading'/>"/>
    <meta name="menu" content="MaterialMenu"/>

</head>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
           onclick="location.href='<c:url value="/editProduct.html"/>'"
           value="<fmt:message key="button.add"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<s:set name="products" value="products" scope="request"/>
<br><br>

<display:table name="products" class="table" requestURI="" id="products" export="true" pagesize="25">
    <display:column href="editProduct.html"
                    paramId="id" paramProperty="id" >
        <fmt:message key="product.edit"/>
    </display:column>
    <display:column property="nameLang" sortable="true" titleKey="product.name"/>
    <display:column property="code" sortable="true" titleKey="product.code"/>
    <display:column property="descriptionLang" sortable="true" titleKey="product.description"/>
    <display:setProperty name="paging.banner.item_name" value="product"/>
    <display:setProperty name="paging.banner.items_name" value="products"/>
    <display:setProperty name="export.excel.filename" value="Product List.xls"/>
    <display:setProperty name="export.csv.filename" value="Product List.csv"/>
    <display:setProperty name="export.pdf.filename" value="Product List.pdf"/>
    <display:setProperty name="paging.banner.some_items_found" value=""/>
    <display:setProperty name="paging.banner.all_items_found" value=""/>

</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    //highlightTableRows("productList");
</script>